const JSEncrypt = require('node-jsencrypt');

const key = require('../key/key');

const encrypt = new JSEncrypt();
encrypt.setPrivateKey(key.priv);

const decrypt = (data) => encrypt.decrypt(data);

module.exports = { decrypt };
